﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Bdcs.Core.Entity
{
    /// <summary>
    /// Base_TempK数据模型对象
    /// </summary>
    [Serializable]
    public partial class Base_TempKMod
    {
        /// <summary>
        /// 初始化Base_TempK数据模型对象
        /// </summary>
        public Base_TempKMod()
        {
            
        }
        /// <summary>
        /// 初始化Base_TempK数据模型对象并给在SQL中不能为空的字段赋值
        /// </summary>
        /// <param name="iD">ID</param>
        /// <param name="tempV">TempV</param>
        /// <param name="baseR">BaseR</param>
        /// <param name="k">k</param>
        public Base_TempKMod(int iD,decimal tempV,decimal baseR,decimal k)
        {
            //给ID字段赋值
            this.ID = iD;
            //给TempV字段赋值
            this.TempV = tempV;
            //给BaseR字段赋值
            this.BaseR = baseR;
            //给k字段赋值
            this.K = k;
        }
        /// <summary>
        /// 初始化Base_TempK数据模型对象并给所有字段赋值
        /// </summary>
        /// <param name="iD">ID</param>
        /// <param name="tempV">TempV</param>
        /// <param name="baseR">BaseR</param>
        /// <param name="k">k</param>
        /// <param name="mode">mode</param>
        public Base_TempKMod(int iD,decimal tempV,decimal baseR,decimal k,string mode)
        {
            //给ID字段赋值
            this.ID = iD;
            //给TempV字段赋值
            this.TempV = tempV;
            //给BaseR字段赋值
            this.BaseR = baseR;
            //给k字段赋值
            this.K = k;
            //给mode字段赋值
            this.Mode = mode;
        }
        
		//属性存储数据的变量
        private int _iD;
        private decimal _tempV;
        private decimal _baseR;
        private decimal _k;
        private string _mode;
        
        /// <summary>
        /// ID
        /// </summary>
        public int ID
        {
            get { return this._iD; }
            set { this._iD = value; }
        }
        /// <summary>
        /// TempV
        /// </summary>
        public decimal TempV
        {
            get { return this._tempV; }
            set { this._tempV = value; }
        }
        /// <summary>
        /// BaseR
        /// </summary>
        public decimal BaseR
        {
            get { return this._baseR; }
            set { this._baseR = value; }
        }
        /// <summary>
        /// k
        /// </summary>
        public decimal K
        {
            get { return this._k; }
            set { this._k = value; }
        }
        /// <summary>
        /// mode
        /// </summary>
        public string Mode
        {
            get { return this._mode; }
            set { this._mode = value; }
        }
        
        /// <summary>
        /// 对比两个Base_TempK数据模型对象是否一致
        /// </summary>
        /// <param name="obj">要进行比对的Base_TempK数据模型对象</param>
        /// <returns>返回是否一致，为true一致，为false不一致</returns>
        public override bool Equals(object obj)
        {
            //判断传入对象是否为null
            if (obj == null) return false;
            //将传入对象转换成Base_TempK数据模型对象
            Base_TempKMod base_TempKMod = obj as Base_TempKMod;
            //判断是否转换成功
            if (base_TempKMod == null) return false;
            //进行匹配属性的值
            return
                //判断ID是否一致
                this.ID == base_TempKMod.ID &&
                //判断TempV是否一致
                this.TempV == base_TempKMod.TempV &&
                //判断BaseR是否一致
                this.BaseR == base_TempKMod.BaseR &&
                //判断k是否一致
                this.K == base_TempKMod.K &&
                //判断mode是否一致
                this.Mode == base_TempKMod.Mode;
        }
        /// <summary>
        /// 将当前Base_TempK数据模型对象转换成哈希码
        /// </summary>
        /// <returns>哈希值</returns>
        public override int GetHashCode()
        {
            //将Base_TempK数据模型对象的属性进行按位异或运算处理得到哈希码并返回
            return
                //将ID进行按位异或运算处理
                this.ID.GetHashCode() ^
                //将TempV进行按位异或运算处理
                this.TempV.GetHashCode() ^
                //将BaseR进行按位异或运算处理
                this.BaseR.GetHashCode() ^
                //将k进行按位异或运算处理
                this.K.GetHashCode() ^
                //将mode进行按位异或运算处理
                (this.Mode == null ? 2147483647 : this.Mode.GetHashCode());
        }
        /// <summary>
        /// 将当前Base_TempK数据模型对象转换成字符串副本【仅显示在SQL中不能为空的列】
        /// </summary>
        /// <returns>字符串形式副本</returns>
        public override string ToString()
        {
            //将当前Base_TempK数据模型对象转换成字符串副本
            return
                "[" +
                //将ID转换成字符串
                this.ID + "," +
                //将TempV转换成字符串
                this.TempV + "," +
                //将BaseR转换成字符串
                this.BaseR + "," +
                //将k转换成字符串
                this.K +
                "]";
        }
    }
}
